home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v8n06.arc / STDPRN1.C < prev    next >
C/C++ Source or Header  |  1989-02-28  |  245b  |  18 lines

  1. /* create stdprn for Turbo C
  2.  * version 1
  3.  */
  4. #include<stdio.h>
  5.  
  6. main()
  7. {
  8.     FILE    *stdprn;
  9.  
  10.     if(!(stdprn = fopen("LPT1","wt")))
  11.     {
  12.         fprintf(stderr,"\nUnable to open stdprn");
  13.         exit(0);
  14.     }
  15.     fprintf(stdprn,"stdprn is open\f");
  16. }
  17.  
  18.